layui.use("table",function () {

	var table=layui.table;

	var vm=new Vue({
		el:"#vue_content",
		data:{
			list:"",
		}
	});

    var teaId=$("#myId").text();

    $.ajax({
        url:"getTeaAllCourse",
        type:"get",
        data:{
            "teaId":teaId,
        },
        success:function(data){
            vm.list=data;
        },
    });

    //点击课程名，获取点击课程ID
    $(document).on("click","a.queryStudent",function () {
        var courseId=$(this).parent().siblings(".id").text();
        var courseName=$(this).text();
        var property=$(this).parent().siblings(".property").text();
        var selectedNum=$(this).parent().siblings(".selectedNum").text();
        $.session.set("courseId",courseId);
        $.session.set("courseName",courseName);
        $.session.set("property",property);
        $.session.set("selectedNum",selectedNum);
    });
});
